const mog = require('mongoose');

mog.connect("mongodb://localhost/1208");

mog.connection.on('open',()=>{
    console.log("连接成功");
});
mog.connection.on('error',()=>{
    console.log("连接失败");
});

module.exports = mog;